package com.ruoyi.system.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 工单消息推送对象 sys_user_push
 *
 * @author wanghc
 * @date 2022-08-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserPush implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 公众号消息推送：1是开启；0关闭
     */
    private Integer open;

    /**
     * 为了识别用户，每个用户针对每个公众号或小程序等应用会产生一个安全的OpenID，
     * 公众号或应用可将此ID进行存储，便于用户下次登录时辨识其身份，或将其与用户在第三方应用中的原有账号进行绑定
     */
    private String openid;

    /**
     * 小程序用户session_key
     */
    private String sessionKey;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getOpen() {
        return open;
    }

    public void setOpen(Integer open) {
        this.open = open;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    @Override
    public String toString() {
        return "SysUserPush{" +
                "userId=" + userId +
                ", open=" + open +
                ", openid='" + openid + '\'' +
                ", sessionKey='" + sessionKey + '\'' +
                '}';
    }
}
